export class ActionInfo {


    public static Action_Type = {
        apply_dismiss: 99, //申请解散
        Release: 999, //解散结束
    }
    public actionType: number; //操作类型
    public actionChair: number; ////操作玩家
    public actionValue:number;

    public next_turn_time: number; //
    public apply_dismiss: number;
    public apply_dismiss_time;//申请时间
    public apply_dismissList: Array<number> = [] //解散状态 0:未投票 1:同意 2:拒绝
    public apply_dismiss_refuse: number
    public release_reason: string = ""

    public json2baseAction(data: object) {
        this.actionType = data["actionType"]
        this.actionChair = data["actionChair"]
        this.actionValue = data["actionValue"]
        this.next_turn_time = data["next_turn_time"]
        this.apply_dismiss = data["apply_dismiss"]
        this.apply_dismiss_time = data["apply_dismiss_time"]
        this.apply_dismissList = data["apply_dismissList"]
        this.apply_dismiss_refuse = data["apply_dismiss_refuse"]
        this.release_reason = data["release_reason"]
    }
}